package org.simple.learning.spring.boot.mybatis.controller;

import org.simple.learning.spring.boot.mybatis.mapper.UserMapper;
import org.simple.learning.spring.boot.mybatis.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author guihuo (E-mail:1620657419@qq.com)
 * @version v1.0 创建时间：2017/10/21 22:28
 * 用于测试的controller
 */
@RestController
public class DemoController {

    @Autowired
    private UserMapper userMapper;

    @RequestMapping
    public void index() {
        User user = userMapper.selectByPrimaryKey(1);
        System.out.println(user);
    }


}